<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<script src="js/informationPage.js"></script>

<!-- 
    모든 음식 정보 페이지
 -->
    <div id="adminMode" class="exerciseSearch">
		<div id="exerciseSearchbar">
			<h3>전체 운동 관리</h3>
			<form name="exerciseAllSearch">
				<table style="border: 1px solid gray; width:800px; height:60px;">
					<tr>
						<td>
							운동명 : 
				            <input type="text" name="exerciseSearch" size="50"/>
				            <input type="submit" value="검색"/>
				       </td>
	            	</tr>
	            </table>
	        </form>
        </div>
        
        <div style="padding: 15px 0px"></div>
        
        <div id="exerciseAllList">
        	전체 운동 : 
        	<table style="border: 1px solid gray; width: 800px; height: 30px; text-align: center">
				<tr style="background: skyblue">
					<td style="width: 50px">운동번호</td>
					<td style="width: 250px">운동명</td>
					<td style="width: 125px">운동목적</td>
					<td style="width: 125px">운동부위</td>
					<td style="width: 100px">수정일</td>
					<td style="width: 150px"></td>
            	</tr>
            	<c:forEach var="exercise" items="${exercise }">
            	<tr>
            		<td>${exercise.exerciseNo }</td>
					<td>${exercise.exerciseName }</td>
					<td>${exercise.exercisePurpose }</td>
					<td>${exercise.exerciseRegio }</td>
					<td rowspan="2">${exercise.updateDate }</td>
					<td>
					
						<a href="javascript:adminExerciseModify(${exercise.exerciseNo });"><input type="button" value="수정하기">
						</a>
						<input type="button" value="삭제하기">
						
						
					</td>
            	</tr>
            	
            	<tr>
            	</tr>
            	</c:forEach>
            	
	        </table>
	        <br>
        페이징
        
        <br><br>
        </div>
        
</div>